<template>
  <div>加法组件
    <button @click="$store.commit('addCount',3)">+3</button>
    <p>{{$store.state.count}}</p>
  </div>
</template>

<script>
export default {
  name: 'AddCom',
  data () {
    return {}
  },
  methods: {}
}
</script>

<style scoped></style>
